#ifndef COctreeFinder_H
#define COctreeFinder_H
#include <osgGe/BoundingBox>


class NoLockPool;
class  COctreeFinder
{
public:
	COctreeFinder();
	~COctreeFinder();

	void setIsUseThreadPools(bool isUseThreadPools);

	//遍历
	void addKongCaoIds(COctreeNode* node);


	void init(osg::BoundingBoxd &box, int depth);

	void resetOctree();

	void calCollisionNode();

	static	COctreeFinder*  Instance();
	
public:
	static	COctreeFinder* mCOctreeFinder;
	COctreeSceneManager* mCOctreeSceneManager;

	std::map<COctreeNode*, std::vector<COctreeNode*>> mCollisionNode;

	NoLockPool* mLockPool;

	bool mIsUseThreadPools;
	
};


#endif


